namespace ExcelTool
{
    using System;
    class Program
    {
        static bool _proc(string[] args) {
            Converter converter = new Converter();

            if(!converter.ParseArgs(args)) return false;
            if(!converter.LoadXmlFiles()) return false;
            if(!converter.LoadExcelFiles()) return false;


            if(!converter.PreCheck()) return false;
            if(!converter.StartConvert()) return false;

            return true;
        }
        static int Main(string[] args) {

            int ret = 0;
            _proc(args);

            if(!Reporter.Report()) {
                ret = -1;
            }

#if DEBUG
            Console.ReadLine();
#endif
            return ret;
        }
    }
}
